package br.ufpe.cin.dsoa.policy;

import org.apache.felix.ipojo.InstanceManager;

import br.ufpe.cin.dsoa.strategy.CreationPolicy;

public class StaticInstance implements CreationPolicy {

	private Object servant;

	@Override
	public Object createInstance(InstanceManager m_manager) {

		if (servant == null) {
			servant = m_manager.createPojoObject();
		}

		return servant;
	}

}
